package com.chzu.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chzu.mapper.QuestionPaperMapper;
import com.chzu.pojo.QuestionPaper;
import com.chzu.service.QuestionPaperService;
import lombok.Data;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author lz
 * @Version 1.0
 * @Company 滁州大健康与养老产业研究院
 * @ClassName QuestionPaperServiceImpl
 * @Description TODO
 * @Date 2022/02/22 17:39
 */
@Service
public class QuestionPaperServiceImpl extends ServiceImpl<QuestionPaperMapper, QuestionPaper> implements QuestionPaperService {

    @Resource
    private QuestionPaperMapper questionPaperMapper;

    /**
     * 批量插入试题信息
     * @param questionId 试题id的集合
     * @param paperId 试卷id
     * @return
     */
    @Override
    public int createPaper(String paperId, List<String> questionId) {
        return questionPaperMapper.createPaper(paperId, questionId);
    }
}
